import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/HolloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path:'/task',
      name:'Task',
      component:()=>import ('@/components/task.vue'),
      children:[
        {
          path:'/aaa',
          name:'taskAAA',
          component:()=>import ('@/components/aaa.vue')
        }
      ]
    },
    // {
    //   path:'/table',
    //   name:'Table',
    //   component:()=>import('@/components/table/table.vue')
    // },
    {
      path:'/edit',
      name:'edit',
      component:()=>import('@/components/table/edit.vue')
    },
    {
      path:"/",
      name:"login",
      component:()=>import('@/components/login')
    },
    {
      path:"/main",
      name:"main",
      component:()=>import('@/components/main'),
      children:[
		  {
		      path:'/show',
		      name:'show',
		      component:()=>import('@/views/show')
		  },
        {
            path:'/table',
            name:'Table',
            component:()=>import('@/views/table/table.vue')
        },
        {
            path:"/course",
            name:"course",
            component:()=>import('@/views/course/courseTable')
        },
        {
            path:"/tbClass",
            name:"tbClass",
            component:()=>import('@/views/tbclass/tbclassTable')
        },
        {
            path:"/student",
            name:"student",
            component:()=>import('@/views/student/studentTable')
        },
        {
            path:"/teacher",
            name:"teacher",
            component:()=>import('@/views/teacher/teacherTable')
        },
        {
            path:"/classGrade",
            name:"classGrade",
            component:()=>import('@/views/grade/classGrade')
        },
        {
            path:"/personGrade",
            name:"personGrade",
            component:()=>import('@/views/grade/personGrade')
        },
        {
            path:"/allGrade",
            name:"allGrade",
            component:()=>import('@/views/grade/allGrade')
        },
        {
          path:"/test2",
          name:"test2",
          component:()=>import('@/views/test2'),
        },
				
		{
		  path:"/stuClassGrade",
		  name:"stuClassGrade",
		  component:()=>import('@/views/grade/stuClassGrade'),
		},
		{
		  path:"/stuAllGrade",
		  name:"/stuAllGrade",
		  component:()=>import('@/views/grade/stuAllGrade'),
		},
        ]
    },
    {
      path:"/test",
      name:"test",
      component:()=>import('@/views/test'),
    },
    {
      path:"/test2",
      name:"test2",
      component:()=>import('@/views/test2'),
    }
  ]
})
